package com.luban.test;

import com.luban.app.Appconfig;
import com.luban.dao.IndexDao1;
import com.luban.dao.Role;
import com.luban.springListener.PublishMailEvent;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Wwl {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext annotationConfigApplicationContext =
				new AnnotationConfigApplicationContext();
		annotationConfigApplicationContext.register(Appconfig.class);
		annotationConfigApplicationContext.refresh();
//		Role bean = annotationConfigApplicationContext.getBean(Role.class);
		PublishMailEvent bean = annotationConfigApplicationContext.getBean(PublishMailEvent.class);
		bean.sendMail();

		System.out.println(bean);
		System.out.println(1212);
	}

}

